﻿using System;          
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using TX.Core.Data;

namespace TX.Passport.QueryModels
{
    /// <summary>
    /// 用户查询对象
    /// </summary>
    public class AdministratorQuery : CommonPageQueryModel
    {
        #region 属性
        
        /// <summary>
        /// 
        /// </summary>
        private string _userName = string.Empty; 
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="")]
        public string UserName {
            get { return _userName == null ? string.Empty : _userName.Trim(); }
            set{ _userName=value;}
        }
        
        /// <summary>
        /// 
        /// </summary>
        private string _password = string.Empty; 
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="")]
        public string Password {
            get { return _password == null ? string.Empty : _password.Trim(); }
            set{ _password=value;}
        }
        
        /// <summary>
        /// 
        /// </summary>
        private string _name = string.Empty; 
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="")]
        public string Name {
            get { return _name == null ? string.Empty : _name.Trim(); }
            set{ _name=value;}
        }
        
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="")]
        public System.DateTime? ThisLoginDateTime { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="")]
        public System.DateTime? LastLoginDateTime { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        private string _thisLoginIp = string.Empty; 
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="")]
        public string ThisLoginIp {
            get { return _thisLoginIp == null ? string.Empty : _thisLoginIp.Trim(); }
            set{ _thisLoginIp=value;}
        }
        
        /// <summary>
        /// 
        /// </summary>
        private string _lastLoginIp = string.Empty; 
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="")]
        public string LastLoginIp {
            get { return _lastLoginIp == null ? string.Empty : _lastLoginIp.Trim(); }
            set{ _lastLoginIp=value;}
        }
        
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="")]
        public int? LoginTimes { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="")]
        public System.Guid? PositionId { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="")]
        public System.Guid? DepartmentId { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="")]
        public int? State { get; set; }
        
        /// <summary>
        /// 部门
        /// </summary>
        public TX.Passport.Models.DepartmentQuery Department { get;set;}
        /// <summary>
        /// 职位
        /// </summary>
        public TX.Passport.Models.PositionQuery Position { get;set;}
        #endregion
        
    }
}
